class CreateAdminGroups < ActiveRecord::Migration
  def self.up
    create_table :admin_groups do |t|
      t.column :name, :string
      t.column :deleted_at, :datetime
      t.timestamps
    end
    
    # 导入默认数据
    AdminGroup.import_data
  end

  def self.down
    drop_table :admin_groups
  end
end
